<#setting number_format = "#"/>
<#setting datetime_format = dateTimeFormat/>
<#assign logged = logged?default(false)/>
<#assign language = language?default("en_US")/>
<#assign hasCodeBlock = hasCodeBlock?default(false)/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/style.css?${startupTime} );</style>
<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/${language}.css?${startupTime} );</style>

<#if hasCodeBlock>
	<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/SyntaxHighlighter.css?${startupTime} );</style>
</#if>

<title>${pageTitle?default("")?html}${I18n.getMessage("forumIndex.defaultTitle")}</title>

</head>
<body class="${language}" style="text-align:center;">

<!--
Original theme from phpBB (http://www.phpbb.com) subSilver
Created by subBlue design
http://www.subBlue.com

Modifications by JForum Team
-->

<table width="92%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<table cellspacing="0" cellpadding="0" width="100%" border="0">
				<tr>
                    <td colspan="2" align="right">
						            <#if canAccessModerationLog?default(false)>
										<img src="${contextPath}/templates/${templateName}/images/icon_mini_members.gif" alt="[Moderation Log]" />
										<a id="moderationlog" class="mainmenu" href="${JForumContext.encodeURL("/moderation/showActivityLog")}">${I18n.getMessage("ModerationLog.moderationLog")}</a>
									</#if>

									<#if logged>
										<a id="myprofile" class="mainmenu" href="${JForumContext.encodeURL("/user/edit/${session.userId}")}"><img src="${contextPath}/templates/${templateName}/images/icon_mini_profile.gif" border="0" alt="[Profile]" /> ${I18n.getMessage("ForumBase.profile")}</a>
										<#if bookmarksEnabled>
											<a class="mainmenu" href="${JForumContext.encodeURL("/bookmarks/list/${session.userId}")}"><img src="${contextPath}/templates/${templateName}/images/icon_minipost.gif" alt="[Post]" />${I18n.getMessage("Bookmarks.myBag")}</a>
										</#if>
										<a id="privatemessages" class="mainmenu" href="${JForumContext.encodeURL("/pm/inbox")}"><img src="${contextPath}/templates/${templateName}/images/icon_mini_message.gif" border="0" alt="[Message]" />
											<#if (session.privateMessages > 0)>
												${I18n.getMessage("ForumBase.newPm")}: (${session.privateMessages})
											<#else>
												${I18n.getMessage("ForumBase.privateMessages")}
											</#if>
										</a>
										</span>

										<#if !sso>
											<a id="logout" class="mainmenu" href="${JForumContext.encodeURL("/user/logout")}"><img src="${contextPath}/templates/${templateName}/images/icon_mini_login.gif" border="0" alt="[Login]" /> ${I18n.getMessage("ForumBase.logout")} [${session.username}] </a></span>
										</#if>
									</#if>

									<#if !logged && !sso>
										<a id="register" class="mainmenu" href="${JForumContext.encodeURL("/user/insert")}"><img src="${contextPath}/templates/${templateName}/images/icon_mini_register.gif" border="0" alt="[Register]" /> ${I18n.getMessage("ForumBase.register")}</a></span>
										<a id="login" class="mainmenu" href="${JForumContext.encodeURL("/user/login")}"><img src="${contextPath}/templates/${templateName}/images/icon_mini_login.gif" border="0" alt="[Login]" /> ${I18n.getMessage("ForumBase.login")}</a> </span>
									</#if>
					</td>
                    </tr>
               <tr>
					<td align="left" valign="middle" colspan="2" class="logoSpan">
						 <span class="s1"></span>
						 <span class="s2"></span>
					</td>
				</tr>
                <tr>
                    <td align="left" valign="bottom" colspan="2" class="menubar">
                         <table cellspacing="0" cellpadding="0" width="" border="0">
				            <tr>
				                <td class="mainMenuLeft"></td>
                                <td class="mainMenuCenter">
                                    &nbsp;
                                    <span class="mainmenu" style="margin-top:12px; height:10px;"> 
                                    
                                    <a id="backtosite" class="mainmenu" href="${homepageLink}">
                                    <img src="${contextPath}/templates/${templateName}/images/icon_mini_groups.gif" alt="[Groups]" />
                                    ${I18n.getMessage("ForumBase.backToSite")}</a>
									
									<a id="search" class="mainmenu" href="${JForumContext.encodeURL("/search/filters")}">
									<img src="${contextPath}/templates/${templateName}/images/icon_mini_search.gif" alt="[Search]"/>
									${I18n.getMessage("ForumBase.search")}</a>
									
									<a id="latest" class="mainmenu" href="${JForumContext.encodeURL("/recentTopics/list")}">
									<img src="${contextPath}/templates/${templateName}/images/icon_mini_recentTopics.gif" alt="[Recent Topics]" />
									${I18n.getMessage("ForumBase.recentTopics")}</a>
									
									<a id="hottest" class="mainmenu" href="${JForumContext.encodeURL("/hottestTopics/list")}">
									<img src="${contextPath}/templates/${templateName}/images/icon_mini_recentTopics.gif" alt="[Hottest Topics]" />
									${I18n.getMessage("ForumBase.hottestTopics")}</a>
									
									<a id="latest2" class="mainmenu" href="${JForumContext.encodeURL("/user/list")}">
									<img src="${contextPath}/templates/${templateName}/images/icon_mini_members.gif" alt="[Members]" />
									${I18n.getMessage("ForumBase.usersList")}</a>
									&nbsp;
	 						</td>
	 						<td class="mainMenuRight"></td>
                           </tr>
                         </table>
					</td>
                </tr>
			</table>
		</td>

        <td>
            
        </td>
	</tr>
	<tr>
		<td>

